package com.bsj.power.common.helper;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class GeoHashConstants {

    public static String GEO_HASH_STRING = "GETHASH";

    public static String POS_INFO = "POSINFO";

    public static String TRANSPORT_ALARM_KEY = "transportAlarmKey";

    public static String TRANSPORT_905_ALARM_KEY = "transport905AlarmKey";

    public static String TRANSPORT_EARLY_ALARM_KEY = "transportEarlyAlarmKey";

    public static String TRANSPORT_905_EARLY_ALARM_KEY = "transport905EarlyAlarmKey";

    public static String POLYMERIZE_ALARM_KEY = "polymerizeAlarmKey";

    public static String POLYMERIZE_ALARM_USER_ID = "polymerizeAlarmUserId";

    public static String POLYMERIZE__EARLY_ALARM_USER_ID = "polymerizeEarlyAlarmUserId";

    public static String NOT_HANDLE_MEMBER_KEY = "notHandleMemberKey";

    public static String OTHER_NOT_HANDLE_MEMBER_KEY = "notHandleMemberKey";

    public static String OTHER_POS_INFO = "OTHERPOSINFO";

    public static String OTHER_POS_808_INFO = "OTHERPOS808INFO";

    public static String POS_808_INFO = "POS808INFO";

    public static int changeInt(String s) {
        try {
            return Integer.parseInt(s);
        } catch (Exception e) {
            log.warn("转化不成功");
            return 0;
        }
    }

    public static Long changeLong(String s) {
        try {
            return Long.parseLong(s);
        } catch (Exception e) {
            log.warn("转化不成功");
            return 0L;
        }
    }
}
